package com.ruoyi.system.domain;

import java.util.Date;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作品对象 works
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
public class Works extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long workId;

    /** 创作者ID */
    @Excel(name = "创作者ID")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "创作时间", readConverterExp = "$column.readConverterExp()")
    private Date createdAt;

    /** 作品名称 */
    @Excel(name = "作品名称")
    private String title;

    /** 作品图片URL */
    @Excel(name = "作品图片URL")
    private String imageUrl;

    /** 作品内容 */
    @Excel(name = "作品内容")
    private String content;

    /*节选*/
    @Excel(name = "节选")
    private String excerpt;

    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public String getExcerpt() {
        return excerpt;
    }

    public void setExcerpt(String excerpt) {
        this.excerpt = excerpt;
    }

    public void setWorkId(Long workId)
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return "Works{" +
                "workId=" + workId +
                ", userId=" + userId +
                ", createdAt=" + createdAt +
                ", title='" + title + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", content='" + content + '\'' +
                ", excerpt='" + excerpt + '\'' +
                ", user=" + user +
                '}';
    }
}
